package com.ss.android.topic.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.RelativeLayout;

public class SquareRelativeLayout extends RelativeLayout {
    public SquareRelativeLayout(Context arg1) {
        super(arg1);
    }

    public SquareRelativeLayout(Context arg1, AttributeSet arg2) {
        super(arg1, arg2);
    }

    public SquareRelativeLayout(Context arg1, AttributeSet arg2, int arg3) {
        super(arg1, arg2, arg3);
    }

    protected void onMeasure(int arg3, int arg4) {
        this.setMeasuredDimension(SquareRelativeLayout.getDefaultSize(0, arg3), SquareRelativeLayout.getDefaultSize(0, arg4));
        int v0 = View.MeasureSpec.makeMeasureSpec(this.getMeasuredWidth(), 1073741824);
        super.onMeasure(v0, v0);
    }
}

